from PyQt5.QtCore import QThread
import time


class TaskThread(QThread):

    def __init__(self, row_index, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.row_index = row_index

    def run(self):
        time.sleep(2)
        print(self.row_index)